package org.commons.communication;
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.ArrayList;

public class ScanNet {
	
	public static boolean isAvailable(InetSocketAddress isa) {
		Socket s = new Socket();
		try {
			s.connect(isa, 1000);
		} catch (IOException e) {
			return false;
		}
		finally {
			try {
				s.close();
			} catch (IOException e) {
			}
		}
		return true;
	}
}